<html>
    <head>
        <title>
            任务列表
        </title>
        <meta charset="utf-8">     
    </head>
    <body>
        <h1 style="text-align: center;">
                任务详情
        </h1>
        <div style="width:1200px; margin:0 auto;">
            订单号：<?php echo $info['task_id']; ?><br>
            标题：<?php echo $info['title']; ?><br>
            url：<?php echo $info['url']; ?><br>
            sku：<?php echo $info['sku']; ?><br>
            单价即担保价格：<?php echo $info['price']; ?><br>
            购买数量：<?php echo $info['count']; ?><br>
            是否改价：<?php if($info['ischangeprice']==1){echo "要";}else{echo "不要";} ?><br>
            是否直达车：<?php if($info['isget']==1){echo "要";}else{echo "不要";} ?><br>
            发布时间：<?php echo $info['time']; ?><br>
            任务次数：<?php echo $info['taskcount']; ?><br>
            确认收货：<?php switch ($info['gettimes'])
                        {
                        case 1:
                          echo "到时预约";
                          break;
                        case 2:
                          echo "7天后收货";
                          break;
                        case 3:
                          echo "14天后收货";
                          break;
                         case 4:
                          echo "不确认收货";
                          break;
                     
                      } ?><br>
            
            评分：<?php switch ($info['scores'])
                        {
                        case 5:
                          echo "全部5分";
                          break;
                        case 4:
                          echo "总体5名，明细4分或5分";
                          break;
                        case 0:
                          echo "全部不打分";
                          break;
                        } ?><br>
            总价（价格+手续费10）*任务次数：<?php echo ($info['price']+10)*$info['taskcount']; ?>元<br>
            状态：<?php
                    switch ($info['status'])
                        {
                        case 1:
                          echo "未付款";
                          break;
                        case 2:
                          echo "计划中";
                          break;
                        case 3:
                          echo "待接手";
                          break;
                      case 4:
                          echo "待下单";
                          break;
                      case 5:
                          echo "待改价";
                          break;
                      case 6:
                          echo "等待付款";
                          break;
                      case 7:
                          echo "待风控检查";
                          break;
                      case 8:
                          echo "待发货";
                          break;
                      case 9:
                          echo "到期收货";
                          break;
                      case 10:
                          echo "已完成";
                          break;
                      case 11:
                          echo "已失效";
                          break;

                        }
                        if($info['status']==1){ ?>
                           <a href='index.php?c=task&a=checkout&id=<?php echo $info['task_id']; ?>'>付款</a> <a href="index.php?c=task&a=del&id=<?php echo $info['task_id']; ?>">删除</a>
                       <?php  }
                    ?>      
        </div>
</html>